package com.woniu.outlet.po;

import java.util.ArrayList;
import java.util.List;

public class BomDetailPoExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public BomDetailPoExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Long value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Long value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Long value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Long value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Long value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Long value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Long> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Long> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Long value1, Long value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Long value1, Long value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andProPlanIdIsNull() {
            addCriterion("pro_plan_id is null");
            return (Criteria) this;
        }

        public Criteria andProPlanIdIsNotNull() {
            addCriterion("pro_plan_id is not null");
            return (Criteria) this;
        }

        public Criteria andProPlanIdEqualTo(Long value) {
            addCriterion("pro_plan_id =", value, "proPlanId");
            return (Criteria) this;
        }

        public Criteria andProPlanIdNotEqualTo(Long value) {
            addCriterion("pro_plan_id <>", value, "proPlanId");
            return (Criteria) this;
        }

        public Criteria andProPlanIdGreaterThan(Long value) {
            addCriterion("pro_plan_id >", value, "proPlanId");
            return (Criteria) this;
        }

        public Criteria andProPlanIdGreaterThanOrEqualTo(Long value) {
            addCriterion("pro_plan_id >=", value, "proPlanId");
            return (Criteria) this;
        }

        public Criteria andProPlanIdLessThan(Long value) {
            addCriterion("pro_plan_id <", value, "proPlanId");
            return (Criteria) this;
        }

        public Criteria andProPlanIdLessThanOrEqualTo(Long value) {
            addCriterion("pro_plan_id <=", value, "proPlanId");
            return (Criteria) this;
        }

        public Criteria andProPlanIdIn(List<Long> values) {
            addCriterion("pro_plan_id in", values, "proPlanId");
            return (Criteria) this;
        }

        public Criteria andProPlanIdNotIn(List<Long> values) {
            addCriterion("pro_plan_id not in", values, "proPlanId");
            return (Criteria) this;
        }

        public Criteria andProPlanIdBetween(Long value1, Long value2) {
            addCriterion("pro_plan_id between", value1, value2, "proPlanId");
            return (Criteria) this;
        }

        public Criteria andProPlanIdNotBetween(Long value1, Long value2) {
            addCriterion("pro_plan_id not between", value1, value2, "proPlanId");
            return (Criteria) this;
        }

        public Criteria andMaterialNameIsNull() {
            addCriterion("material_name is null");
            return (Criteria) this;
        }

        public Criteria andMaterialNameIsNotNull() {
            addCriterion("material_name is not null");
            return (Criteria) this;
        }

        public Criteria andMaterialNameEqualTo(String value) {
            addCriterion("material_name =", value, "materialName");
            return (Criteria) this;
        }

        public Criteria andMaterialNameNotEqualTo(String value) {
            addCriterion("material_name <>", value, "materialName");
            return (Criteria) this;
        }

        public Criteria andMaterialNameGreaterThan(String value) {
            addCriterion("material_name >", value, "materialName");
            return (Criteria) this;
        }

        public Criteria andMaterialNameGreaterThanOrEqualTo(String value) {
            addCriterion("material_name >=", value, "materialName");
            return (Criteria) this;
        }

        public Criteria andMaterialNameLessThan(String value) {
            addCriterion("material_name <", value, "materialName");
            return (Criteria) this;
        }

        public Criteria andMaterialNameLessThanOrEqualTo(String value) {
            addCriterion("material_name <=", value, "materialName");
            return (Criteria) this;
        }

        public Criteria andMaterialNameLike(String value) {
            addCriterion("material_name like", value, "materialName");
            return (Criteria) this;
        }

        public Criteria andMaterialNameNotLike(String value) {
            addCriterion("material_name not like", value, "materialName");
            return (Criteria) this;
        }

        public Criteria andMaterialNameIn(List<String> values) {
            addCriterion("material_name in", values, "materialName");
            return (Criteria) this;
        }

        public Criteria andMaterialNameNotIn(List<String> values) {
            addCriterion("material_name not in", values, "materialName");
            return (Criteria) this;
        }

        public Criteria andMaterialNameBetween(String value1, String value2) {
            addCriterion("material_name between", value1, value2, "materialName");
            return (Criteria) this;
        }

        public Criteria andMaterialNameNotBetween(String value1, String value2) {
            addCriterion("material_name not between", value1, value2, "materialName");
            return (Criteria) this;
        }

        public Criteria andSpecificationIsNull() {
            addCriterion("specification is null");
            return (Criteria) this;
        }

        public Criteria andSpecificationIsNotNull() {
            addCriterion("specification is not null");
            return (Criteria) this;
        }

        public Criteria andSpecificationEqualTo(String value) {
            addCriterion("specification =", value, "specification");
            return (Criteria) this;
        }

        public Criteria andSpecificationNotEqualTo(String value) {
            addCriterion("specification <>", value, "specification");
            return (Criteria) this;
        }

        public Criteria andSpecificationGreaterThan(String value) {
            addCriterion("specification >", value, "specification");
            return (Criteria) this;
        }

        public Criteria andSpecificationGreaterThanOrEqualTo(String value) {
            addCriterion("specification >=", value, "specification");
            return (Criteria) this;
        }

        public Criteria andSpecificationLessThan(String value) {
            addCriterion("specification <", value, "specification");
            return (Criteria) this;
        }

        public Criteria andSpecificationLessThanOrEqualTo(String value) {
            addCriterion("specification <=", value, "specification");
            return (Criteria) this;
        }

        public Criteria andSpecificationLike(String value) {
            addCriterion("specification like", value, "specification");
            return (Criteria) this;
        }

        public Criteria andSpecificationNotLike(String value) {
            addCriterion("specification not like", value, "specification");
            return (Criteria) this;
        }

        public Criteria andSpecificationIn(List<String> values) {
            addCriterion("specification in", values, "specification");
            return (Criteria) this;
        }

        public Criteria andSpecificationNotIn(List<String> values) {
            addCriterion("specification not in", values, "specification");
            return (Criteria) this;
        }

        public Criteria andSpecificationBetween(String value1, String value2) {
            addCriterion("specification between", value1, value2, "specification");
            return (Criteria) this;
        }

        public Criteria andSpecificationNotBetween(String value1, String value2) {
            addCriterion("specification not between", value1, value2, "specification");
            return (Criteria) this;
        }

        public Criteria andSurfacesIsNull() {
            addCriterion("surfaces is null");
            return (Criteria) this;
        }

        public Criteria andSurfacesIsNotNull() {
            addCriterion("surfaces is not null");
            return (Criteria) this;
        }

        public Criteria andSurfacesEqualTo(String value) {
            addCriterion("surfaces =", value, "surfaces");
            return (Criteria) this;
        }

        public Criteria andSurfacesNotEqualTo(String value) {
            addCriterion("surfaces <>", value, "surfaces");
            return (Criteria) this;
        }

        public Criteria andSurfacesGreaterThan(String value) {
            addCriterion("surfaces >", value, "surfaces");
            return (Criteria) this;
        }

        public Criteria andSurfacesGreaterThanOrEqualTo(String value) {
            addCriterion("surfaces >=", value, "surfaces");
            return (Criteria) this;
        }

        public Criteria andSurfacesLessThan(String value) {
            addCriterion("surfaces <", value, "surfaces");
            return (Criteria) this;
        }

        public Criteria andSurfacesLessThanOrEqualTo(String value) {
            addCriterion("surfaces <=", value, "surfaces");
            return (Criteria) this;
        }

        public Criteria andSurfacesLike(String value) {
            addCriterion("surfaces like", value, "surfaces");
            return (Criteria) this;
        }

        public Criteria andSurfacesNotLike(String value) {
            addCriterion("surfaces not like", value, "surfaces");
            return (Criteria) this;
        }

        public Criteria andSurfacesIn(List<String> values) {
            addCriterion("surfaces in", values, "surfaces");
            return (Criteria) this;
        }

        public Criteria andSurfacesNotIn(List<String> values) {
            addCriterion("surfaces not in", values, "surfaces");
            return (Criteria) this;
        }

        public Criteria andSurfacesBetween(String value1, String value2) {
            addCriterion("surfaces between", value1, value2, "surfaces");
            return (Criteria) this;
        }

        public Criteria andSurfacesNotBetween(String value1, String value2) {
            addCriterion("surfaces not between", value1, value2, "surfaces");
            return (Criteria) this;
        }

        public Criteria andColorNumIsNull() {
            addCriterion("color_num is null");
            return (Criteria) this;
        }

        public Criteria andColorNumIsNotNull() {
            addCriterion("color_num is not null");
            return (Criteria) this;
        }

        public Criteria andColorNumEqualTo(String value) {
            addCriterion("color_num =", value, "colorNum");
            return (Criteria) this;
        }

        public Criteria andColorNumNotEqualTo(String value) {
            addCriterion("color_num <>", value, "colorNum");
            return (Criteria) this;
        }

        public Criteria andColorNumGreaterThan(String value) {
            addCriterion("color_num >", value, "colorNum");
            return (Criteria) this;
        }

        public Criteria andColorNumGreaterThanOrEqualTo(String value) {
            addCriterion("color_num >=", value, "colorNum");
            return (Criteria) this;
        }

        public Criteria andColorNumLessThan(String value) {
            addCriterion("color_num <", value, "colorNum");
            return (Criteria) this;
        }

        public Criteria andColorNumLessThanOrEqualTo(String value) {
            addCriterion("color_num <=", value, "colorNum");
            return (Criteria) this;
        }

        public Criteria andColorNumLike(String value) {
            addCriterion("color_num like", value, "colorNum");
            return (Criteria) this;
        }

        public Criteria andColorNumNotLike(String value) {
            addCriterion("color_num not like", value, "colorNum");
            return (Criteria) this;
        }

        public Criteria andColorNumIn(List<String> values) {
            addCriterion("color_num in", values, "colorNum");
            return (Criteria) this;
        }

        public Criteria andColorNumNotIn(List<String> values) {
            addCriterion("color_num not in", values, "colorNum");
            return (Criteria) this;
        }

        public Criteria andColorNumBetween(String value1, String value2) {
            addCriterion("color_num between", value1, value2, "colorNum");
            return (Criteria) this;
        }

        public Criteria andColorNumNotBetween(String value1, String value2) {
            addCriterion("color_num not between", value1, value2, "colorNum");
            return (Criteria) this;
        }

        public Criteria andSpecificationUnitIsNull() {
            addCriterion("specification_unit is null");
            return (Criteria) this;
        }

        public Criteria andSpecificationUnitIsNotNull() {
            addCriterion("specification_unit is not null");
            return (Criteria) this;
        }

        public Criteria andSpecificationUnitEqualTo(String value) {
            addCriterion("specification_unit =", value, "specificationUnit");
            return (Criteria) this;
        }

        public Criteria andSpecificationUnitNotEqualTo(String value) {
            addCriterion("specification_unit <>", value, "specificationUnit");
            return (Criteria) this;
        }

        public Criteria andSpecificationUnitGreaterThan(String value) {
            addCriterion("specification_unit >", value, "specificationUnit");
            return (Criteria) this;
        }

        public Criteria andSpecificationUnitGreaterThanOrEqualTo(String value) {
            addCriterion("specification_unit >=", value, "specificationUnit");
            return (Criteria) this;
        }

        public Criteria andSpecificationUnitLessThan(String value) {
            addCriterion("specification_unit <", value, "specificationUnit");
            return (Criteria) this;
        }

        public Criteria andSpecificationUnitLessThanOrEqualTo(String value) {
            addCriterion("specification_unit <=", value, "specificationUnit");
            return (Criteria) this;
        }

        public Criteria andSpecificationUnitLike(String value) {
            addCriterion("specification_unit like", value, "specificationUnit");
            return (Criteria) this;
        }

        public Criteria andSpecificationUnitNotLike(String value) {
            addCriterion("specification_unit not like", value, "specificationUnit");
            return (Criteria) this;
        }

        public Criteria andSpecificationUnitIn(List<String> values) {
            addCriterion("specification_unit in", values, "specificationUnit");
            return (Criteria) this;
        }

        public Criteria andSpecificationUnitNotIn(List<String> values) {
            addCriterion("specification_unit not in", values, "specificationUnit");
            return (Criteria) this;
        }

        public Criteria andSpecificationUnitBetween(String value1, String value2) {
            addCriterion("specification_unit between", value1, value2, "specificationUnit");
            return (Criteria) this;
        }

        public Criteria andSpecificationUnitNotBetween(String value1, String value2) {
            addCriterion("specification_unit not between", value1, value2, "specificationUnit");
            return (Criteria) this;
        }

        public Criteria andProductionConsumptionIsNull() {
            addCriterion("production_consumption is null");
            return (Criteria) this;
        }

        public Criteria andProductionConsumptionIsNotNull() {
            addCriterion("production_consumption is not null");
            return (Criteria) this;
        }

        public Criteria andProductionConsumptionEqualTo(String value) {
            addCriterion("production_consumption =", value, "productionConsumption");
            return (Criteria) this;
        }

        public Criteria andProductionConsumptionNotEqualTo(String value) {
            addCriterion("production_consumption <>", value, "productionConsumption");
            return (Criteria) this;
        }

        public Criteria andProductionConsumptionGreaterThan(String value) {
            addCriterion("production_consumption >", value, "productionConsumption");
            return (Criteria) this;
        }

        public Criteria andProductionConsumptionGreaterThanOrEqualTo(String value) {
            addCriterion("production_consumption >=", value, "productionConsumption");
            return (Criteria) this;
        }

        public Criteria andProductionConsumptionLessThan(String value) {
            addCriterion("production_consumption <", value, "productionConsumption");
            return (Criteria) this;
        }

        public Criteria andProductionConsumptionLessThanOrEqualTo(String value) {
            addCriterion("production_consumption <=", value, "productionConsumption");
            return (Criteria) this;
        }

        public Criteria andProductionConsumptionLike(String value) {
            addCriterion("production_consumption like", value, "productionConsumption");
            return (Criteria) this;
        }

        public Criteria andProductionConsumptionNotLike(String value) {
            addCriterion("production_consumption not like", value, "productionConsumption");
            return (Criteria) this;
        }

        public Criteria andProductionConsumptionIn(List<String> values) {
            addCriterion("production_consumption in", values, "productionConsumption");
            return (Criteria) this;
        }

        public Criteria andProductionConsumptionNotIn(List<String> values) {
            addCriterion("production_consumption not in", values, "productionConsumption");
            return (Criteria) this;
        }

        public Criteria andProductionConsumptionBetween(String value1, String value2) {
            addCriterion("production_consumption between", value1, value2, "productionConsumption");
            return (Criteria) this;
        }

        public Criteria andProductionConsumptionNotBetween(String value1, String value2) {
            addCriterion("production_consumption not between", value1, value2, "productionConsumption");
            return (Criteria) this;
        }

        public Criteria andValuationUnitIsNull() {
            addCriterion("valuation_unit is null");
            return (Criteria) this;
        }

        public Criteria andValuationUnitIsNotNull() {
            addCriterion("valuation_unit is not null");
            return (Criteria) this;
        }

        public Criteria andValuationUnitEqualTo(String value) {
            addCriterion("valuation_unit =", value, "valuationUnit");
            return (Criteria) this;
        }

        public Criteria andValuationUnitNotEqualTo(String value) {
            addCriterion("valuation_unit <>", value, "valuationUnit");
            return (Criteria) this;
        }

        public Criteria andValuationUnitGreaterThan(String value) {
            addCriterion("valuation_unit >", value, "valuationUnit");
            return (Criteria) this;
        }

        public Criteria andValuationUnitGreaterThanOrEqualTo(String value) {
            addCriterion("valuation_unit >=", value, "valuationUnit");
            return (Criteria) this;
        }

        public Criteria andValuationUnitLessThan(String value) {
            addCriterion("valuation_unit <", value, "valuationUnit");
            return (Criteria) this;
        }

        public Criteria andValuationUnitLessThanOrEqualTo(String value) {
            addCriterion("valuation_unit <=", value, "valuationUnit");
            return (Criteria) this;
        }

        public Criteria andValuationUnitLike(String value) {
            addCriterion("valuation_unit like", value, "valuationUnit");
            return (Criteria) this;
        }

        public Criteria andValuationUnitNotLike(String value) {
            addCriterion("valuation_unit not like", value, "valuationUnit");
            return (Criteria) this;
        }

        public Criteria andValuationUnitIn(List<String> values) {
            addCriterion("valuation_unit in", values, "valuationUnit");
            return (Criteria) this;
        }

        public Criteria andValuationUnitNotIn(List<String> values) {
            addCriterion("valuation_unit not in", values, "valuationUnit");
            return (Criteria) this;
        }

        public Criteria andValuationUnitBetween(String value1, String value2) {
            addCriterion("valuation_unit between", value1, value2, "valuationUnit");
            return (Criteria) this;
        }

        public Criteria andValuationUnitNotBetween(String value1, String value2) {
            addCriterion("valuation_unit not between", value1, value2, "valuationUnit");
            return (Criteria) this;
        }

        public Criteria andSpare3IsNull() {
            addCriterion("spare3 is null");
            return (Criteria) this;
        }

        public Criteria andSpare3IsNotNull() {
            addCriterion("spare3 is not null");
            return (Criteria) this;
        }

        public Criteria andSpare3EqualTo(String value) {
            addCriterion("spare3 =", value, "spare3");
            return (Criteria) this;
        }

        public Criteria andSpare3NotEqualTo(String value) {
            addCriterion("spare3 <>", value, "spare3");
            return (Criteria) this;
        }

        public Criteria andSpare3GreaterThan(String value) {
            addCriterion("spare3 >", value, "spare3");
            return (Criteria) this;
        }

        public Criteria andSpare3GreaterThanOrEqualTo(String value) {
            addCriterion("spare3 >=", value, "spare3");
            return (Criteria) this;
        }

        public Criteria andSpare3LessThan(String value) {
            addCriterion("spare3 <", value, "spare3");
            return (Criteria) this;
        }

        public Criteria andSpare3LessThanOrEqualTo(String value) {
            addCriterion("spare3 <=", value, "spare3");
            return (Criteria) this;
        }

        public Criteria andSpare3Like(String value) {
            addCriterion("spare3 like", value, "spare3");
            return (Criteria) this;
        }

        public Criteria andSpare3NotLike(String value) {
            addCriterion("spare3 not like", value, "spare3");
            return (Criteria) this;
        }

        public Criteria andSpare3In(List<String> values) {
            addCriterion("spare3 in", values, "spare3");
            return (Criteria) this;
        }

        public Criteria andSpare3NotIn(List<String> values) {
            addCriterion("spare3 not in", values, "spare3");
            return (Criteria) this;
        }

        public Criteria andSpare3Between(String value1, String value2) {
            addCriterion("spare3 between", value1, value2, "spare3");
            return (Criteria) this;
        }

        public Criteria andSpare3NotBetween(String value1, String value2) {
            addCriterion("spare3 not between", value1, value2, "spare3");
            return (Criteria) this;
        }

        public Criteria andSpare1IsNull() {
            addCriterion("spare1 is null");
            return (Criteria) this;
        }

        public Criteria andSpare1IsNotNull() {
            addCriterion("spare1 is not null");
            return (Criteria) this;
        }

        public Criteria andSpare1EqualTo(String value) {
            addCriterion("spare1 =", value, "spare1");
            return (Criteria) this;
        }

        public Criteria andSpare1NotEqualTo(String value) {
            addCriterion("spare1 <>", value, "spare1");
            return (Criteria) this;
        }

        public Criteria andSpare1GreaterThan(String value) {
            addCriterion("spare1 >", value, "spare1");
            return (Criteria) this;
        }

        public Criteria andSpare1GreaterThanOrEqualTo(String value) {
            addCriterion("spare1 >=", value, "spare1");
            return (Criteria) this;
        }

        public Criteria andSpare1LessThan(String value) {
            addCriterion("spare1 <", value, "spare1");
            return (Criteria) this;
        }

        public Criteria andSpare1LessThanOrEqualTo(String value) {
            addCriterion("spare1 <=", value, "spare1");
            return (Criteria) this;
        }

        public Criteria andSpare1Like(String value) {
            addCriterion("spare1 like", value, "spare1");
            return (Criteria) this;
        }

        public Criteria andSpare1NotLike(String value) {
            addCriterion("spare1 not like", value, "spare1");
            return (Criteria) this;
        }

        public Criteria andSpare1In(List<String> values) {
            addCriterion("spare1 in", values, "spare1");
            return (Criteria) this;
        }

        public Criteria andSpare1NotIn(List<String> values) {
            addCriterion("spare1 not in", values, "spare1");
            return (Criteria) this;
        }

        public Criteria andSpare1Between(String value1, String value2) {
            addCriterion("spare1 between", value1, value2, "spare1");
            return (Criteria) this;
        }

        public Criteria andSpare1NotBetween(String value1, String value2) {
            addCriterion("spare1 not between", value1, value2, "spare1");
            return (Criteria) this;
        }

        public Criteria andSpare2IsNull() {
            addCriterion("spare2 is null");
            return (Criteria) this;
        }

        public Criteria andSpare2IsNotNull() {
            addCriterion("spare2 is not null");
            return (Criteria) this;
        }

        public Criteria andSpare2EqualTo(String value) {
            addCriterion("spare2 =", value, "spare2");
            return (Criteria) this;
        }

        public Criteria andSpare2NotEqualTo(String value) {
            addCriterion("spare2 <>", value, "spare2");
            return (Criteria) this;
        }

        public Criteria andSpare2GreaterThan(String value) {
            addCriterion("spare2 >", value, "spare2");
            return (Criteria) this;
        }

        public Criteria andSpare2GreaterThanOrEqualTo(String value) {
            addCriterion("spare2 >=", value, "spare2");
            return (Criteria) this;
        }

        public Criteria andSpare2LessThan(String value) {
            addCriterion("spare2 <", value, "spare2");
            return (Criteria) this;
        }

        public Criteria andSpare2LessThanOrEqualTo(String value) {
            addCriterion("spare2 <=", value, "spare2");
            return (Criteria) this;
        }

        public Criteria andSpare2Like(String value) {
            addCriterion("spare2 like", value, "spare2");
            return (Criteria) this;
        }

        public Criteria andSpare2NotLike(String value) {
            addCriterion("spare2 not like", value, "spare2");
            return (Criteria) this;
        }

        public Criteria andSpare2In(List<String> values) {
            addCriterion("spare2 in", values, "spare2");
            return (Criteria) this;
        }

        public Criteria andSpare2NotIn(List<String> values) {
            addCriterion("spare2 not in", values, "spare2");
            return (Criteria) this;
        }

        public Criteria andSpare2Between(String value1, String value2) {
            addCriterion("spare2 between", value1, value2, "spare2");
            return (Criteria) this;
        }

        public Criteria andSpare2NotBetween(String value1, String value2) {
            addCriterion("spare2 not between", value1, value2, "spare2");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}